package com.lz.controller.ly;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.lz.entity.AuditLogging;
import com.lz.service.ly.AuditLoggingService;

@Controller
public class AuditLoggingController {
	
	@Autowired
	private AuditLoggingService auditLoggingService;

	
	@RequestMapping(value="/selAuditLoggingById",produces="application/json;charset=utf-8")
	@ResponseBody
	public String selAuditLoggingById(Integer id) {
		if(id != null) {
			List<AuditLogging> list = auditLoggingService.getAuditLoggingList(id);
			return JSON.toJSONString(list);
		}
		return null;
	}
}
